package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.domain.Category;

import java.util.List;

public interface ICategoryService extends IService<Category> {
    Page<Category> findByPage(Integer pageNum, Integer pageSize);

    void saveCategory(Category category);

    void updateCategory(Category category);

    List<Category> findByType(Integer type);

    List<Category> findAll();

}
